﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    public enum NPCType { 
    //任务类；
    Task,
    //商店类;
    Shop,
    //铁匠类;
    Blacksmith
    }
    abstract class NPC
    {
        private string name;
        private NPCType type;

        public string Name {
            get { return this.name; }
            set { this.name = value; }
        }

        public NPCType Type {
            get { return this.type; }
            set { this.type = value; }
        }

        public NPC(string name, NPCType type) {
            this.name = name;
            this.type = type;
        }
        public abstract void speak();
    }


}
